package ltd.hxya.novel.entity.book;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import ltd.hxya.novel.entity.base.BaseEntity;

import java.io.Serializable;

/**
 * <p>
 * 作者表
 * </p>
 *
 * @author hty
 * @since 2022-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("author")
@ApiModel(value="Author对象", description="作者表")
public class Author extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "邀请码")
    private String inviteCode;

    @ApiModelProperty(value = "笔名")
    private String penName;

    @ApiModelProperty(value = "手机号码")
    private String telPhone;

    @ApiModelProperty(value = "QQ或微信账号")
    private String chatAccount;

    @ApiModelProperty(value = "电子邮箱")
    private String email;

    @ApiModelProperty(value = "作品方向，0：男频，1：女频")
    private Integer workDirection;

    @ApiModelProperty(value = "0：正常，1：封禁")
    private Integer status;



}
